<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<!DOCTYPE html>
<html>
	<head>
		<title>My JSP 'registration.jsp' starting page</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<script type="text/javascript"
			src="../resources/js/reference/jquery-1.7.1.min.js"></script>
		<script type="text/javascript"
			src="../resources/js/local/registration.js"></script>
	</head>

	<body>
		<div>
			<form:form action="userRegistration.do" method="post"
				commandName="userRegistrationForm" id="userRegistrationForm">
				<div>
					<table>
						<tr>
							<td>
								用户名：
							</td>
							<td>
								<form:input path="username" />
							</td>
							<td>
								<form:errors path="username" />
							</td>
						</tr>
						<tr>
							<td>
								手机号码：
							</td>
							<td>
								<form:input path="mobile" id="mobile" />
							</td>
							<td id="mobile_error_field">
								<form:errors path="mobile" />
							</td>
						</tr>
						<tr>
							<td>
								用户类型：
							</td>
							<td>
								<form:radiobutton path="userType" value="01" />
								车主
								<form:radiobutton path="userType" value="02" />
								乘客、非车主
							</td>
							<td id="mobile_error_field">
								<form:errors path="mobile" />
							</td>
						</tr>
						<tr>
							<td>
								登录密码：
							</td>
							<td>
								<form:password path="password" id="password" />
							</td>
							<td id="password_error_field">
								<form:errors path="password" />
							</td>
						</tr>
						<tr>
							<td>
								登录密码：
							</td>
							<td>
								<form:password path="rePassword" />
							</td>
							<td>
								<form:errors path="rePassword" />
							</td>
						</tr>
					</table>
				</div>
				<div>
					<input type="submit" value="提交" id="submit">
				</div>
			</form:form>
		</div>
	</body>
</html>
